<!-- 编辑 -->
<script id="tpl-edit" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">模板类型 </label>
            <div class="am-u-sm-9 am-u-end">
                <select name="data[app_type]" data-am-selected="{searchBox: 1, btnSize: 'sm'}" required>
                    <option value="">请选择类型</option>
                    {{ each list }}
				    <option value="{{ $value.app_type }}" {{ $value.app_type == model.app_type ? 'selected' : '' }}>{{ $value.name }}</option>
                    {{ /each }}
                </select>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">模板ID </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[id]" value="{{ model.id }}" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">版本号 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[user_version]" value="{{ model.user_version }}" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">版本描述 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[user_desc]" value="{{ model.user_desc }}" required>
            </div>
        </div>
    </div>  
</script>